DEF_PROJECT=../../..
include $(DEF_PROJECT)/scripts/main.mk
name=linux
dist=header
destdir=$(DIR_SYSROOT)
version=2.6.39.4
group=tools

DL_SERV=http
DL_HOST=www.kernel.org
DL_PATH=pub/linux/kernel/v2.6
DL_SUFFIX=tar.bz2

CC_CFLAGS=-O2
CC_LDFLAGS=
pre-build:
	cd $(source);$(MAKE) mrproper

normal-build:
	cd $(source);$(MAKE) ARCH=$(patsubst i%86,x86,$(CC_ARCH)) headers_check

post-build:
	mkdir -p $(destdir)/usr/include
	cd $(source);$(MAKE) ARCH=$(patsubst i%86,x86,$(CC_ARCH)) INSTALL_HDR_PATH=dest headers_install
	cd $(source);cp -rf dest/include/* $(destdir)/usr/include
	find $(destdir)/usr/include -name .install -or -name ..install.cmd -delete
